package com.ruoyi.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.business.domain.ScollResponse;
import com.ruoyi.business.domain.ShopOrder;
import com.ruoyi.business.vo.ShopOrderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单Mapper接口
 *
 * @author Tellsea
 * @date 2025-01-17
 */
public interface ShopOrderMapper extends BaseMapper<ShopOrder> {

    Page<ShopOrderVo> queryList(Page<?> page, @Param("entity") ShopOrderVo entity);

    List<ShopOrderVo> queryList(@Param("entity") ShopOrderVo entity);

    ShopOrderVo queryById(@Param("id") Long orderId);

    int remodeOrder(@Param("time") String time);

    int getCountMonth(@Param("time") String time);

    int updateStatusByOrderId(@Param("orderId") String orderId);

    List<ScollResponse> getScoll();


    int getSum(@Param("time") String time);
}
